<?php

require( "config.php" );
$action = isset( $_GET['action'] ) ? $_GET['action'] : "";

switch ( $action ) {
  default:
    links();
}

function links() {
  $results = array();
  $data = Link::getList();
  $results['link'] = $data['results'];
  $results['totalRows'] = $data['totalRows'];
  $results['pageTitle'] = htmlspecialchars( "Football Club Ribérac" );
  require( TEMPLATE_PATH . "/link.php" );
}

?>
